Tidy first? A personal exercise in empirical software design
Kent Beck이 계획하고 있는 소프트웨어 디자인 시리즈 중 첫번째 책. Larry Constantine과 Edward Yourdon의 책 “Structured design”에 영향을 받음.
Foreword
Preface
이 책의 주제
”Tidy First?” describes:
- When to tidy messy code before changing what it computes
- How to tidy messy code safely and efficiently
- How to stop tidying messy code
- Why tidying works
소프트웨어 설계의 양면성:
Software design is a powerful tool to ease pain in the world - if it is used well. Used badly, it becomes just another instrument of oppression, and a drag on the effectiveness of software development.
Introduction
Part I. Tidyings
- Guard clauses
- Dead code
- Normalize symmetries
- New interface, old implementation
- Reading order
- Cohesion order
- Move declaration and initialization together
- Explaining variables
- Explaining constants
- Explicit parameters
- Chunk statements
- Extract helper
- One pile
- Explaining comments
- Delete redundant comments
Part II. Managing
- Separate tidying
- Chaining
- Batch Sizes
- Rhythm
- Getting Untangled
- First, After, Later, Never